CC=gcc
SRC=src
VPATH=$(SRC)
INCLUDE=$(SRC)/include
CFLAGS=-O -I$(INCLUDE) -DLINUX
OBJDIR=build
RM=rm -f
OBJS = nweb.o nweb_log.o worker.o digest_auth.o authz.o \
mime.o http_request.o http_response.o http_protocol.o authn.o md5.o \
basic_authn.o base64.o

.PHONY: default all clean include

default: all

all: $(OBJS)
	$(CC) $(CFLAGS) $(OBJS) -o nweb

clean:
	$(RM) nweb $(OBJS)

